
<div id="PopBlockNotification" style="display: none; background-color: yellow; font-size: 9pt; text-align: center; padding: 3px; margin-bottom: 4px;">
  <div style="width: 760px;">
    <table cellspacing="0" cellpadding="3" border="0" align="center">
      <tbody><tr>
          <td>
            <img alt="!" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/animatedexclamation.gif">
          </td>
          <td align="center">
            Your popup blocker stopped you from chatting with a member. <a onclick="popNewICWindow();" href="javascript:void(0);">click here</a> to open the window<br>
            <a href="#help//3#22">Click here</a> to learn how to disable your popup blocker on BBPeopleMeet.com
          </td>
          <td>
            <img alt="!" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/animatedexclamation.gif">
          </td>
        </tr>
      </tbody></table>
  </div>
</div>


<div id="columnlefthome">


  <div id="profilecompletion">
    <div id="updateprofilehome">
      <p id="myprofile"><a href="<?php echo FRONT_SITE_URL; ?>user/profile/"><?php echo $profile['username']; ?></a></p>
      <p><a href="<?php echo FRONT_SITE_URL; ?>user/profile/">Profile</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="<?php echo FRONT_SITE_URL; ?>user/profile/MediaUpload/">Photo</a></p>
      <div id="myprofilecomplete">
        <div id="myprofilecomplete1"><a href="<?php echo FRONT_SITE_URL; ?>user/profile/MediaUpload/">
            <img border="0" class="" src="<?php if ($profile['link_img'] != null) echo FRONT_SITE_URL, 'www/uploads/photos/thumbs/thumb_', $profile['link_img']; else {
        echo $profile['gender'] == 'male' ? FRONT_SITE_URL . 'www/images/images1/noPhoto-1.gif' : FRONT_SITE_URL . 'www/images/images1/noPhoto-2.gif';
      } ?>"></a> </div>
        <div id="myprofilecomplete2">
          <p>Your profile is</p>
          <p class="percentcomplete100 color-highlight-dark" id="percentcomplete"><span id="percentcompletevalue"><?php echo $data['percent']['global']; ?></span><span class="percentsmall">%</span></p>
          <p class="fourteen">COMPLETE</p>
        </div>
        <div id="myprofilecomplete3">
          <p class="fourteen"><a href="<?php echo FRONT_SITE_URL; ?>user/profile/MediaUpload/">Add photos</a></p>
          <p class="photocomplete color-highlight-dark">+<span class="photocompletenumber">27</span>%</p>
          <p class="fourteen"><a href="<?php echo FRONT_SITE_URL; ?>user/profile/">Complete info</a></p>
          <p class="photocomplete color-highlight-dark">+<span class="photocompletenumber"><?php echo $data['percent']['about']; ?></span>%</p>
        </div>
        <div></div>
      </div>
      <div id="myprofileupdates">
        <p></p>
      </div>
    </div>






  </div>

  <?php if($profile['gender']=='female' && isset($data['useranswer'])):?>
  <div class="miniessayreviewmessage">Your answer has been saved! It will appear on your profile after review, usually within 24 hours.</div>
  <div class="miniessay">
        <div style="display: none;" class="miniessaypopupplace">
            <div class="miniessaypopup">
                <div class="miniessaypopuparrow"><img src="<?php echo FRONT_SITE_URL;?>www/images/images1/arrowup.png"></div>
                <div class="miniessayclosebtn">
                    <a href="javascript:;" title="Close" class="closebtn"><img border="0" src="<?php echo FRONT_SITE_URL;?>www/images/images1/largestclosebtn.png"></a>
                </div>
                <div class="miniessaypopupmessage popupshapestyle"><p><em>More About You</em> is a new feature that allows you to write short answers to questions about the things that matter to you.  Answer as many or as few questions as you want and we’ll add them to your profile for other users to read and get a better sense of what you like and what makes you tick.  <em id="miniessayinfoemphasis">Each answer can be between 100 and 500 characters</em>.</p></div>
            </div>
        </div>
        <div class="miniessayrow1">
            <p>More About You</p>
            <a title="Learn More" href="javascript:;"><img border="0" src="<?php echo FRONT_SITE_URL;?>www/images/images1/miniessayquestion.png"></a></div>
        <div id="questionPlaceholder">
            <div class="miniessayrow2">
                <p><?php echo $data['useranswer']['text']; ?></p>
            </div>
            <div class="miniessayrow3">
                    <textarea id="<?php echo $data['useranswer']['id']; ?>"></textarea>
            </div>
        </div>
        <div class="miniessayrow4">
            <input value="100" style="display:none" id="miniessayminlenghth">
            <input value="500" style="display:none" id="miniessaymaxlenghth">
            <div style="display: none;" class="miniessayerrorplace">
                <div class="miniessayerror">
                    <div class="miniessayerrorarrow"><img border="0" src="<?php echo FRONT_SITE_URL;?>www/images/images1/redarrowup.png"></div>
                    <div class="miniessayerrormessage">Please enter at least 100 characters</div>
                </div>
            </div>
            <p class="miniessayrow4p1"><span>0</span></p>
            <p class="miniessayrow4p2">| 500</p>
            <p class="miniessayrow4p3"><a title="Save" class="button_style" onclick="PeopleMedia.MiniEssayQuestions.SaveEdit();" href="javascript:;">Save</a></p>
        </div>

        <p class="clearfix">&nbsp;</p>
    </div>
  <?php endif; ?>


  <a href="#notification"><div id="homepagenotifications">
      <img border="0" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/notificationiconup.png">
      <p>
        Notifications</p>
    </div></a>


<!--
  <div id="fastaction">


    <h1>My Community Updates</h1>
    <div id="FastActionContainer">
      <div style="display: none;" id="famloadingbar">
        <div align="center" style="color:gray; margin-top:15px;">loading...</div>
      </div>
      <div id="FastActionModule1" style="display: block;">
        <div class="fastactionrepeat fastactionrepeat1"><span class="data_fId">70225191</span><span class="data_sourceRecordId">5080704</span><span class="data_encodedMemberId">B19F737D39FD0B53</span>
          <div style="display:none;" class="captionactionplace">
            <div class="captionaction">
              <h2 class="captionactionplaceholder">douglang70 has been notified
                that you like his photo.</h2>
              <div class="captioncontent">
                <div class="captioncontentleft">
                  <img border="0" class="captionimage profileimageclass" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/5080704s.jpg">
                  <p class="fastcloselink"><a href="javascript:PeopleMedia.FastActionModule.SkipAndGetNew(1,1,true);">Close</a></p>
                </div>
                <div class="captioncontentright">
                  <div class="fam_comment">Upgrade now to tell him why you like it!</div>
                  <a title="Upgrade Now" id="fam_upgrade_button" href="javascript:PeopleMedia.FastActionModule.SendCommentUpgrade('B19F737D39FD0B53',70225191,1,1,'5080704');" class="button_style">Upgrade Now</a>
                </div>
              </div>
            </div>
          </div>
          <a href="#profile=B19F737D39FD0B53&amp;back=Home"><img border="0" class="fastactionrepeatimg profileimageclass" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/5080704s.jpg"></a> 
          <p class="fastactionrepeatp">
            <span class="FAM_LikePhotoHover">
              <img class="profileimageclass FAM_LikePhotoHoverImage" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/5080704s.jpg">
            </span>
            <a href="#/profile?profile=B19F737D39FD0B53&amp;back=Home">douglang70</a> has a new main photo.<br>
            <a class="FAM_LikePhoto" href="javascript:PeopleMedia.FastActionModule.TakeAction(this,'',70225191,1,1,4800501,PeopleMedia.FastActionModule.FAM_LikePhotoKey,'B19F737D39FD0B53');">Like his photo.</a>
          </p>
          <div title="Remove" id="closebutton1" class="fastclosebtn closefast1" style="display: none;">
            <img onclick="PeopleMedia.FastActionModule.SkipAndGetNew('1', '1');" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/closebtn.gif">
          </div>
        </div>
      </div>
      <div id="FastActionModule2" style="display: block;">
        <div class="fastactionrepeat fastactionrepeat2"><span class="data_fId">70225194</span><span class="data_sourceRecordId">0</span><span class="data_encodedMemberId">0EFCE4563783140F</span>
          <a href="#/profile?profile=0EFCE4563783140F&amp;back=Home"><img border="0" class="fastactionrepeatimg profileimageclass" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/5050205s.jpg"></a> 
          <p class="fastactionrepeatp">
            It's <a href="#/profile?profile=0EFCE4563783140F&amp;back=Home">USDA's</a> birthday!<br>
            <a class="FAM_SendBirthdayFlirt" href="javascript:PeopleMedia.FastActionModule.TakeAction(this,'',70225194,2,1,3449293,PeopleMedia.FastActionModule.FAM_SendBirthdayFlirtKey,'0EFCE4563783140F');">Wish him happy birthday</a>
          </p>
          <div title="Remove" id="closebutton2" class="fastclosebtn closefast2" style="display: block;">
            <img onclick="PeopleMedia.FastActionModule.SkipAndGetNew('2', '1');" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/closebtn.gif">
          </div>
        </div>
      </div>
      <div id="FastActionModule3" style="display: block;">
        <div class="fastactionrepeat fastactionrepeat3"><span class="data_fId">70225196</span><span class="data_sourceRecordId">0</span><span class="data_encodedMemberId">9120CFED5DF92183</span>
          <a href="#profile?profile=9120CFED5DF92183&amp;back=Home"><img border="0" class="fastactionrepeatimg profileimageclass" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/4849413s.jpg"></a> 
          <p class="fastactionrepeatp">
            <a href="#/profile?profile=9120CFED5DF92183&amp;back=Home">Thomas521</a> completed his interests.<br>
            <a href="javascript:PeopleMedia.FastActionModule.TakeAction(this,'/v3/profile?profile=9120CFED5DF92183&amp;back=Home',70225196,3,1,4664373,'','9120CFED5DF92183');">See if you match</a>
          </p>
          <div title="Remove" id="closebutton3" class="fastclosebtn closefast3">
            <img onclick="PeopleMedia.FastActionModule.SkipAndGetNew('3', '1');" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/closebtn.gif">
          </div>
        </div>
      </div>
    </div>


    <div style="display:none;" id="FAM-NewMemberInArea">
      <div class="fastactionrepeat fastactionrepeat%DisplayIndex%"><span class="data_fId">%fId%</span><span class="data_sourceRecordId">%SourceRecordId%</span><span class="data_encodedMemberId">%EncodedMemberId%</span>
        <div style="display:none;" class="captionactionplace">
          <div class="captionaction border-color-main">
            <h2 class="captionactionplaceholder">%Username% is new in your area, be the first to say hello</h2>
            <div class="captioncontent">
              <div class="captioncontentleft">
                <a href="http://www.bbpeoplemeet.com/v3/home?%ProfileUrl%"><img border="0" class="captionimage profileimageclass" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/spacer.gif"></a> 
                <p class="fastcloselink"><a href="javascript:PeopleMedia.FastActionModule.SkipAndGetNew(%DisplayIndex%,%DisplayGroup%,true);">Close</a></p>
              </div>
              <div class="captioncontentright">
                <textarea rows="" cols="" class="fam_comment" name="fam_comment">Welcome %GenderBirthdayText% to the community</textarea>
                <a title="Tell %GenderBirthdayText%" id="fam_comment_button" class="button_style" href="javascript:PeopleMedia.FastActionModule.SendMessage('%EncodedMemberId%',%fId%,%DisplayIndex%,%DisplayGroup%,'%SourceRecordId%');">Tell %GenderBirthdayText%</a>
              </div>
            </div>
          </div>
        </div>
        <a href="http://www.bbpeoplemeet.com/v3/home?%ProfileUrl%"><img border="0" class="fastactionrepeatimg profileimageclass" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/spacer.gif"></a> 
        <p class="fastactionrepeatp">
          <a href="http://www.bbpeoplemeet.com/v3/home?%ProfileUrl%">%Username%</a> is new in your area.<br>
          <a class="FAM_NewMemberInArea" href="javascript:PeopleMedia.FastActionModule.TakeAction(this,'?%ActionUrl%',%fId%,%DisplayIndex%,%DisplayGroup%,%MemberId%,%EventTypeScript%,'%EncodedMemberId%');">Say hello</a>
        </p>
        <div title="Remove" id="closebutton%DisplayIndex%" class="fastclosebtn closefast%DisplayIndex%">
          <img onclick="PeopleMedia.FastActionModule.SkipAndGetNew('%DisplayIndex%', '%DisplayGroup%');" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/closebtn.gif">
        </div>
      </div>
    </div>


    <div style="display:none;" id="FAM-PhotoLiked3Times">
      <div class="fastactionrepeat fastactionrepeat%DisplayIndex%"><span class="data_fId">%fId%</span><span class="data_sourceRecordId">%SourceRecordId%</span><span class="data_encodedMemberId">%EncodedMemberId%</span>
        <a href="http://www.bbpeoplemeet.com/v3/home?%ProfileUrl%"><img border="0" class="fastactionrepeatimg profileimageclass" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/spacer.gif"></a> 
        <p class="fastactionewmemberpicsize1nrepeatp">
          Several other people liked <a href="http://www.bbpeoplemeet.com/v3/home?%ProfileUrl%">%Username%'s</a> photo.<br>
          <a href="javascript:PeopleMedia.FastActionModule.TakeAction(this,'?%ActionUrl%',%fId%,%DisplayIndex%,%DisplayGroup%,%MemberId%,%EventTypeScript%,'%EncodedMemberId%');">Take a look</a>
        </p>
        <div title="Remove" id="closebutton%DisplayIndex%" class="fastclosebtn closefast%DisplayIndex%">
          <img onclick="PeopleMedia.FastActionModule.SkipAndGetNew('%DisplayIndex%', '%DisplayGroup%');" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/closebtn.gif">
        </div>
      </div>
    </div>

    <div style="display:none;" id="FAM-CompletedInterests">
      <div class="fastactionrepeat fastactionrepeat%DisplayIndex%"><span class="data_fId">%fId%</span><span class="data_sourceRecordId">%SourceRecordId%</span><span class="data_encodedMemberId">%EncodedMemberId%</span>
        <a href="http://www.bbpeoplemeet.com/v3/home?%ProfileUrl%"><img border="0" class="fastactionrepeatimg profileimageclass" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/spacer.gif"></a> 
        <p class="fastactionrepeatp">
          <a href="http://www.bbpeoplemeet.com/v3/home?%ProfileUrl%">%Username%</a> completed %Gender% interests.<br>
          <a href="javascript:PeopleMedia.FastActionModule.TakeAction(this,'?%ActionUrl%',%fId%,%DisplayIndex%,%DisplayGroup%,%MemberId%,%EventTypeScript%,'%EncodedMemberId%');">See if you match</a>
        </p>
        <div title="Remove" id="closebutton%DisplayIndex%" class="fastclosebtn closefast%DisplayIndex%">
          <img onclick="PeopleMedia.FastActionModule.SkipAndGetNew('%DisplayIndex%', '%DisplayGroup%');" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/closebtn.gif">
        </div>
      </div>
    </div>

    <div style="display:none;" id="FAM-InterestMatch">
      <div class="fastactionrepeat fastactionrepeat%DisplayIndex%"><span class="data_fId">%fId%</span><span class="data_sourceRecordId">%SourceRecordId%</span><span class="data_encodedMemberId">%EncodedMemberId%</span>
        <a href="http://www.bbpeoplemeet.com/v3/home?%ProfileUrl%"><img border="0" class="fastactionrepeatimg profileimageclass" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/spacer.gif"></a> 
        <p class="fastactionrepeatp">
          You have matching interests with <a href="http://www.bbpeoplemeet.com/v3/home?%ProfileUrl%">%Username%</a>.<br>
          <a href="javascript:PeopleMedia.FastActionModule.TakeAction(this,'?%ActionUrl%',%fId%,%DisplayIndex%,%DisplayGroup%,%MemberId%,%EventTypeScript%,'%EncodedMemberId%');">Find out more</a>
        </p>
        <div title="Remove" id="closebutton%DisplayIndex%" class="fastclosebtn closefast%DisplayIndex%">
          <img onclick="PeopleMedia.FastActionModule.SkipAndGetNew('%DisplayIndex%', '%DisplayGroup%');" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/closebtn.gif">
        </div>
      </div>
    </div>

    <div style="display:none;" id="FAM-Hometown">
      <div class="fastactionrepeat fastactionrepeat%DisplayIndex%"><span class="data_fId">%fId%</span><span class="data_sourceRecordId">%SourceRecordId%</span><span class="data_encodedMemberId">%EncodedMemberId%</span>
        <a href="http://www.bbpeoplemeet.com/v3/home?%ProfileUrl%"><img border="0" class="fastactionrepeatimg profileimageclass" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/spacer.gif"></a> 
        <p class="fastactionrepeatp">
          You and <a href="http://www.bbpeoplemeet.com/v3/home?%ProfileUrl%">%Username%</a> share a hometown.<br>
          <a class="FAM_SaveAsFavorite" href="javascript:PeopleMedia.FastActionModule.TakeAction(this,'?%ActionUrl%',%fId%,%DisplayIndex%,%DisplayGroup%,%MemberId%,%EventTypeScript%,'%EncodedMemberId%');">Save to my favorites</a>
        </p>
        <div title="Remove" id="closebutton%DisplayIndex%" class="fastclosebtn closefast%DisplayIndex%">
          <img onclick="PeopleMedia.FastActionModule.SkipAndGetNew('%DisplayIndex%', '%DisplayGroup%');" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/closebtn.gif">
        </div>
      </div>
    </div>

    <div style="display:none;" id="FAM-NewApprovedGreeting">
      <div class="fastactionrepeat fastactionrepeat%DisplayIndex%"><span class="data_fId">%fId%</span><span class="data_sourceRecordId">%SourceRecordId%</span><span class="data_encodedMemberId">%EncodedMemberId%</span>
        <a href="http://www.bbpeoplemeet.com/v3/home?%ProfileUrl%"><img border="0" class="fastactionrepeatimg profileimageclass" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/spacer.gif"></a> 
        <p class="fastactionrepeatp">
          <a href="http://www.bbpeoplemeet.com/v3/home?%ProfileUrl%">%Username%</a> added a little about %GenderSelf%.<br>
          <a href="javascript:PeopleMedia.FastActionModule.TakeAction(this,'?%ActionUrl%',%fId%,%DisplayIndex%,%DisplayGroup%,%MemberId%,%EventTypeScript%,'%EncodedMemberId%');">Read it now</a>
        </p>
        <div title="Remove" id="closebutton%DisplayIndex%" class="fastclosebtn closefast%DisplayIndex%">
          <img onclick="PeopleMedia.FastActionModule.SkipAndGetNew('%DisplayIndex%', '%DisplayGroup%');" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/closebtn.gif">
        </div>
      </div>
    </div>

    <div style="display:none;" id="FAM-AddedNewPhoto">
      <div class="fastactionrepeat fastactionrepeat%DisplayIndex%"><span class="data_fId">%fId%</span><span class="data_sourceRecordId">%SourceRecordId%</span><span class="data_encodedMemberId">%EncodedMemberId%</span>
        <a href="http://www.bbpeoplemeet.com/v3/home?%ProfileUrl%"><img border="0" class="fastactionrepeatimg profileimageclass" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/spacer.gif"></a> 
        <p class="fastactionrepeatp">
          <a href="http://www.bbpeoplemeet.com/v3/home?%ProfileUrl%">%Username%</a> has added a new photo.<br>
          <a href="javascript:PeopleMedia.FastActionModule.TakeAction(this,'?%ActionUrl%',%fId%,%DisplayIndex%,%DisplayGroup%,%MemberId%,%EventTypeScript%,'%EncodedMemberId%');">Take a look</a>
        </p>
        <div title="Remove" id="closebutton%DisplayIndex%" class="fastclosebtn closefast%DisplayIndex%">
          <img onclick="PeopleMedia.FastActionModule.SkipAndGetNew('%DisplayIndex%', '%DisplayGroup%');" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/closebtn.gif">
        </div>
      </div>
    </div>

    <div style="display:none;" id="FAM-Birthday">
      <div class="fastactionrepeat fastactionrepeat%DisplayIndex%"><span class="data_fId">%fId%</span><span class="data_sourceRecordId">%SourceRecordId%</span><span class="data_encodedMemberId">%EncodedMemberId%</span>
        <a href="http://www.bbpeoplemeet.com/v3/home?%ProfileUrl%"><img border="0" class="fastactionrepeatimg profileimageclass" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/spacer.gif"></a> 
        <p class="fastactionrepeatp">
          It's <a href="http://www.bbpeoplemeet.com/v3/home?%ProfileUrl%">%Username%'s</a> birthday!<br>
          <a class="FAM_SendBirthdayFlirt" href="javascript:PeopleMedia.FastActionModule.TakeAction(this,'?%ActionUrl%',%fId%,%DisplayIndex%,%DisplayGroup%,%MemberId%,%EventTypeScript%,'%EncodedMemberId%');">Wish %GenderBirthdayText% happy birthday</a>
        </p>
        <div title="Remove" id="closebutton%DisplayIndex%" class="fastclosebtn closefast%DisplayIndex%">
          <img onclick="PeopleMedia.FastActionModule.SkipAndGetNew('%DisplayIndex%', '%DisplayGroup%');" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/closebtn.gif">
        </div>
      </div>
    </div>

    <div style="display:none;" id="FAM-AddedNewProfilePhoto">
      <div class="fastactionrepeat fastactionrepeat%DisplayIndex%"><span class="data_fId">%fId%</span><span class="data_sourceRecordId">%SourceRecordId%</span><span class="data_encodedMemberId">%EncodedMemberId%</span>
        <div style="display:none;" class="captionactionplace">
          <div class="captionaction">
            <h2 class="captionactionplaceholder">%Username% has been notified
              that you like %Gender% photo.</h2>
            <div class="captioncontent">
              <div class="captioncontentleft">
                <img border="0" class="captionimage profileimageclass" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/spacer.gif">
                <p class="fastcloselink"><a href="javascript:PeopleMedia.FastActionModule.SkipAndGetNew(%DisplayIndex%,%DisplayGroup%,true);">Close</a></p>
              </div>
              <div class="captioncontentright">
                <div class="fam_comment">Upgrade now to tell %GenderBirthdayText% why you like it!</div>
                <a title="Upgrade Now" id="fam_upgrade_button" href="javascript:PeopleMedia.FastActionModule.SendCommentUpgrade('%EncodedMemberId%',%fId%,%DisplayIndex%,%DisplayGroup%,'%SourceRecordId%');" class="button_style">Upgrade Now</a>
              </div>
            </div>
          </div>
        </div>
        <a href="http://www.bbpeoplemeet.com/v3/home?%ProfileUrl%"><img border="0" class="fastactionrepeatimg profileimageclass" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/spacer.gif"></a> 
        <p class="fastactionrepeatp">
          <span class="FAM_LikePhotoHover">
            <img class="profileimageclass FAM_LikePhotoHoverImage" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/spacer.gif">
          </span>
          <a href="http://www.bbpeoplemeet.com/v3/home?%ProfileUrl%">%Username%</a> has a new main photo.<br>
          <a class="FAM_LikePhoto" href="javascript:PeopleMedia.FastActionModule.TakeAction(this,'?%ActionUrl%',%fId%,%DisplayIndex%,%DisplayGroup%,%MemberId%,%EventTypeScript%,'%EncodedMemberId%');">Like %Gender% photo.</a>
        </p>
        <div title="Remove" id="closebutton%DisplayIndex%" class="fastclosebtn closefast%DisplayIndex%">
          <img onclick="PeopleMedia.FastActionModule.SkipAndGetNew('%DisplayIndex%', '%DisplayGroup%');" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/closebtn.gif">
        </div>
      </div>
    </div>

    <div class="next3fast">
      <p><a style="" id="NextUpdatesButton" href="javascript:;">More Updates</a></p>
    </div>
  </div>
-->
  <div id="debugspace"></div>








  <div id="myfavoritearea">
    <div id="myfavoritetabs">
      <div title="Who Viewed Me" class="myfavoriteon" id="myfavoritetab">
        <p>
          Who Viewed Me</p>
      </div>
      <div title="Reminders" class="myfavoriteoff color-main" id="remembertotab">
        <p>
          Reminders</p>
      </div>
    </div>
    <div style="display:none;" id="remembertocontent">
      <?php 
      if(isset($data['reminders']) && $data['reminders']!=null && count($data['reminders'])>0):
        foreach($data['reminders'] as $reminder):
        ?>
      <div class="myfavoriterepeat">
        <div class="myfavoriterepeatleft">
          <a href="<?php echo FRONT_SITE_URL,'user/profile/viewprofile/?profile=',$reminder['user_favorited'];?>">
            <img border="0" src="<?php if ($reminder['link_img'] != null) echo FRONT_SITE_URL, 'www/uploads/photos/thumbs/thumb_', $reminder['link_img']; else {
        echo $reminder['gender'] == 'male' ? FRONT_SITE_URL . 'www/images/images1/noPhoto-1.gif' : FRONT_SITE_URL . 'www/images/images1/noPhoto-2.gif';
      } ?>"></a>
        </div>
        <div class="myfavoriterepeatright">
          <a style="cursor:pointer;" onclick="javascript:void(0);">
            <img width="10" border="0" height="13" title="Not Online" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/offlineiconfavorite.png">
          </a>
          <p>

            <a href="<?php echo FRONT_SITE_URL,'user/profile/viewprofile/?profile=',$reminder['user_favorited'];?>">Dragondemon</a><br>
            200 | 
            Coram, NY<br>

            <span class="color-highlight">You saved today</span> <a href="#messages/message?actionType=SentFavorite&amp;profile=DC99835520A54873&amp;msgAction=New&amp;UPN=73&amp;back=home&amp;backparam=&amp;From=Home">Reply</a></p>
          <div class="favoriteiconscta">
            <div style="display: none;" class="flirtoverlayplace">
              <div class="flirtoverlay bgcolor-icon">
                <p>
                  Flirt Sent!</p>
              </div>
            </div>
            <a title="Saved as Favorite" href="javascript:PeopleMedia.Homepage.toggleFavorite('<?php echo $reminder['user_favorited'];?>',false,'rememberto',%20'Favorite');" fav="<?php echo $reminder['user_favorited'];?>">
              <img border="0" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/favoritedicon.png"></a>
            <a title="Save as Favorite" href="javascript:PeopleMedia.Homepage.toggleFavorite('<?php echo $reminder['user_favorited'];?>',true,'rememberto',%20'Favorite');" style="display:none;" unfav="<?php echo $reminder['user_favorited'];?>">
              <img border="0" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/favoriteicon.png"></a>
             <a title="Send Message" href="#/messages/message?actionType=SentFavorite&amp;profile=<?php echo $reminder['user_favorited'];?>&amp;msgAction=New&amp;UPN=73&amp;back=home&amp;backparam=&amp;From=Home">
              <img border="0" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/messageicon.png"></a>
          </div>
        </div>
      </div>
      <?php endforeach; endif; ?>
      <?php if(count($data['reminders'])<3): ?>
        <div class="myfavoriterepeat">
          Don’t forget to contact these members. You never know which will be <span style="font-style: italic">the one</span> - they are waiting to hear from you!
        </div>
      <?php endif; ?>
      
      <?php if(count($data['reminders'])>0): ?>
      <div id="viewmorefavorites">
        <p>
          <a href="#/Notification">View all</a></p>
      </div>
      <?php endif; ?>
    </div>
    <div style="" id="myfavaritecontent">
      <?php 
      if(isset($data['who_view_me']) && $data['who_view_me']!=null && count($data['who_view_me'])>0):
        foreach($data['who_view_me'] as $reminder): 
      ?>
      <div class="myfavoriterepeat">
        <div class="myfavoriterepeatleft">
          <a href="<?php echo FRONT_SITE_URL,'user/profile/viewprofile/?profile=',$reminder['user_id'];?>">
            <img border="0" src="<?php if ($reminder['link_img'] != null) echo FRONT_SITE_URL, 'www/uploads/photos/thumbs/thumb_', $reminder['link_img']; else {
        echo $reminder['gender'] == 'male' ? FRONT_SITE_URL . 'www/images/images1/noPhoto-1.gif' : FRONT_SITE_URL . 'www/images/images1/noPhoto-2.gif';
      } ?>"></a>
        </div>
        <div class="myfavoriterepeatright">
          <a style="cursor:pointer;" onclick="javascript:void(0);">
            <img width="10" border="0" height="13" title="Not Online" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/offlineiconfavorite.png">
          </a>
          <p>

            <a href="<?php echo FRONT_SITE_URL,'user/profile/viewprofile/?profile=',$reminder['user_id'];?>">Dragondemon</a><br>
            <?php echo calculateYearOld($reminder['birthdate']); ?> | af
            Coram, NY<br>

            <span class="color-highlight">Viewed you today</span></p>
          <div class="favoriteiconscta">
            <div style="display: none;" class="flirtoverlayplace">
              <div class="flirtoverlay bgcolor-icon">
                <p>
                  Flirt Sent!</p>
              </div>
            </div>
            <a title="Saved as Favorite" href="javascript:PeopleMedia.Homepage.toggleFavorite('<?php echo $reminder['user_id']; ?>',false,'rememberto',%20'Favorite');" style="display:<?php echo $reminder['favorite']!=null?'block':'none';?>" fav="<?php echo $reminder['user_id']; ?>">
              <img border="0" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/favoritedicon.png"></a>
            <a title="Save as Favorite" href="javascript:PeopleMedia.Homepage.toggleFavorite('<?php echo $reminder['user_id']; ?>',true,'rememberto',%20'Favorite');" style="display:<?php echo $reminder['favorite']!=null?'none':'block';?>;" unfav="<?php echo $reminder['user_id']; ?>">
              <img border="0" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/favoriteicon.png"></a>
             <a title="Send Message" href="#/messages/message?actionType=SentFavorite&amp;profile=<?php echo $reminder['user_id']; ?>&amp;msgAction=New&amp;UPN=73&amp;back=home&amp;backparam=&amp;From=Home">
              <img border="0" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/messageicon.png"></a>
          </div>
        </div>
      </div>
      <?php endforeach; endif;?>
      <?php if(count($data['who_view_me'])<3): ?>
        <div class="myfavoriterepeat">
          Start browsing member profiles. When members see that you viewed them, they’ll take a look at your profile too!
          <p class="nofavssearch"><a href="/v3/Search#Sortby=MyDefault">Search Now</a> to find great members!</p>
        </div>
      <?php endif; ?>
      <?php if(count($data['who_view_me'])>0): ?>
      <div id="viewmorefavorites">
        <p>
          <a href="#/connectlist?tab=2&amp;filter=1">View all</a></p>
      </div>
      <?php endif; ?>
    </div>
  </div>

</div>
<div id="columncenterhome">

  <div class="retentionbanner8">
    <h1>It’s time to upgrade and get your member benefits!</h1>
    <div class="retentionbanner8left">
      <p class="color-alt">
        • Find out who’s flirting with you<br>
        • Send &amp; receive unlimited messages<br>
        • And much more!
      </p>
    </div>
    <div class="retentionbanner8right">
      <div class="retentionbanner8button"><a title="Upgrade Now" class="button_style" href="#/upgrade?upn=52">Upgrade Now</a> </div>
    </div>
  </div>
  <?php if (isset($data['recommend_user']) && $data['recommend_user'] != false): ?>
    <div id="newmembersspace">
      <h1>
        NEW MEMBERS IN YOUR AREA</h1>
      <p class="newmembershowmorelink"><a href="<?php echo FRONT_SITE_URL; ?>search#Sortby=NewMembers">Show More</a></p>
      <div id="newmemberspics">
        <?php
        $count_recommend_user = 1;
        $count_col = 1;
        $img_pos = 1;
        echo '<div id="newmemberspicscol' . $count_col . '">';
        foreach ($data['recommend_user'] as $item):
          $swap_img_pos = array(1 => 2, 2 => 3, 3 => 1);
          ?>
        <div data-favorite="<?php echo mUserFavorite::getUserFavorite($profile['user_id'], $item['user_id'])==false?'False':'True' ?>" id="member<?php echo $count_recommend_user; ?>" class="newmemberrepeat">
            <div style="display:<?php echo mUserFavorite::getUserFavorite($profile['user_id'], $item['user_id'])==false?'none':'block' ?>;" id="staroverlay<?php echo $count_recommend_user; ?>" class="staroverlayplace">
              <div style="display:" id="staroverlayNonFavorite" class="staroverlay">
                <a title="Save as Favorite" onclick="PeopleMedia.NewMembersInArea.toggleFavorite(true, '<?php echo $item['user_id']; ?>', <?php echo $count_recommend_user; ?>)" href="javascript:void(0);"><img border="0" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/favoriteoverlay.png"></a>
              </div>
              <div style="display:<?php echo mUserFavorite::getUserFavorite($profile['user_id'], $item['user_id'])==false?'none':'block' ?>;" id="staroverlayFavorite" class="staroverlay">
                <a title="Saved as Favorite" onclick="PeopleMedia.NewMembersInArea.toggleFavorite(false, '<?php echo $item['user_id']; ?>', <?php echo $count_recommend_user; ?>)" href="javascript:void(0);"><img border="0" src="<?php echo FRONT_SITE_URL; ?>www/images/images1/favoritedoverlay.png"></a>
              </div>
            </div>
            <a href="<?php echo FRONT_SITE_URL; ?>user/profile/viewprofile?profile=<?php echo $item['user_id']; ?>">
              <img border="0" class="newmemberpicsize<?php echo $count_col != 2 ? $img_pos : $swap_img_pos[$img_pos]; ?>" src="<?php if ($item['link_img'] != null) echo FRONT_SITE_URL, 'www/uploads/photos/thumbs/thumb_', $item['link_img']; else {
        echo $item['gender'] == 'male' ? FRONT_SITE_URL . 'www/images/images1/noPhoto-1.gif' : FRONT_SITE_URL . 'www/images/images1/noPhoto-2.gif';
      } ?>"> </a>
          </div>
          <?php
          if ($count_recommend_user % 3 == 0):
            echo '</div>';
            $count_col++;
            $img_pos = 0;
            echo '<div id="newmemberspicscol' . $count_col . '">';
          endif;
          $count_recommend_user++;
          $img_pos++;
        endforeach;
        echo '</div>';
        ?>
      </div>
      <div id="newmembersbottom">
        <p>
          Want to find more great matches?</p>
        <div id="newmemberscta">
          <a title="Search Now" class="button_style" href="<?php echo FRONT_SITE_URL; ?>search#Sortby=NewMembers">Search Now</a></div>
      </div>
    </div>
<?php endif ?>
  <div id="successstoryrelatedarticlesarea">
    <div id="successstorytabs">
      <div title="Success Stories" class="myfavoriteon" id="successstorytab"><p>Success Stories</p></div>
    </div>    

    <div id="successstorycontent">
      <p>I just want to thank you so much for bringing me and my 
        sweetie together. We are so in love. I never would have dreamed I could 
        meet someone like him. We are definitely soul mates!</p>
      <p>
        <a href="#successstories?back=Home"> View more Success Stories</a> |
        <a href="#tellusyourstory?back=Home"> Tell us your Success Story</a>
      </p>


    </div>
  </div>

</div>


<script>
              $jq(document).ready(function() {
                PeopleMedia.Homepage.Actions = {
                  SendBirthdayFlirt: FRONT_SITE_URL+'ajax/primary/SendBirthdayFlirt',
                  SendFlirt: FRONT_SITE_URL+'ajax/primary/SendFlirt',
                  AddFavorite: FRONT_SITE_URL+'ajax/primary/SaveToFavorites',
                  UnFavorite: FRONT_SITE_URL+'ajax/primary/Unfavorite',
                };
              });
</script>
<script language="javascript" type="text/javascript">
  $jq(document).ready(function() {
    //alert("ABC");
    PeopleMedia.FastActionModule.Actions = {
      ShowDebug: false,
      LoadPaidModules: false,
      LoadAllModules: '/v3/FastActionModule/GetAllModules', 
      //xxx2	http://www.bbpeoplemeet.com/v3/FastActionModule/GetAllModules?_=1394988409241 params:_	1394988409241
      //{"status":"Success","message":"Records:2","results":
      //[{"MoreNotificationsAvailable":false,"FastActionNotificationId":70225196,"SiteId":21,"MemberId":4664373,
      //"Gender":"his","GenderBirthdayText":"him","GenderSelf":"himself","EncodedMemberId":"9120CFED5DF92183",
      //"Username":"Thomas521","SourceRecordId":0,"SourceRecordFlags":"","MediaId":4849413,
      //"MediaIsInWriteLocation":false,"IsFavorite":false,"DisplayIndex":2,"DisplayGroup":1,
      //"EventTypeId":8,"ProfileUrl":"/v3/profile?profile=9120CFED5DF92183\u0026back=Home",
      //"ProfilePhotoUrl":"http://pmi3.peoplemedia.com/21/373/4664373/4849413s.jpg",
      //"ActionUrl":"/v3/profile?profile=9120CFED5DF92183\u0026back=Home"
      //},
      //{"MoreNotificationsAvailable":false,"FastActionNotificationId":70327207,"SiteId":21,
      //"MemberId":4791380,"Gender":"his","GenderBirthdayText":"him","GenderSelf":"himself",
      //"EncodedMemberId":"5A4021AA20322780","Username":"crazyfishman","SourceRecordId":5061694,
      //"SourceRecordFlags":"","MediaId":5061694,"MediaIsInWriteLocation":false,"IsFavorite":false,
      //"DisplayIndex":1,"DisplayGroup":1,"EventTypeId":1,"ProfileUrl":"/v3/profile?profile=5A4021AA20322780\u0026back=Home",
      //"ProfilePhotoUrl":"http://pmi0.peoplemedia.com/21/380/4791380/5061694s.jpg","ActionUrl":""
      //}]}
      LoadModule: '/v3/FastActionModule/GetModule',
      GenerateAllModules: '/v3/FastActionModule/GenerateAllModules', //xxx1	http://www.bbpeoplemeet.com/v3/FastActionModule/GenerateAllModules?_=1394988409240	params:_	1394988409240 response: {"status":"Success","message":"Generate All Modules"}
      DisposeModule: '/v3/FastActionModule/DisposeModule',
      AddFavoriteUrl: FRONT_SITE_URL+'ajax/primary/SaveToFavorites',
      SendBirthdayFlirtUrl: FRONT_SITE_URL+'ajax/primary/SendBirthdayFlirt',
      SendMessageUrl: FRONT_SITE_URL+'ajax/primary/SendMessage',
      SendFlirtUrl: FRONT_SITE_URL+'ajax/primary/SendFlirt',
      LikePhotoUrl: FRONT_SITE_URL+'ajax/primary/LikePhoto',
      CommentPhotoUrl: FRONT_SITE_URL+'ajax/primary/CommentPhoto',
      SendCommentUpgradeUrl: '/v3/FastActionModule/SendCommentUpgrade'
    };
    PeopleMedia.FastActionModule.FeatureName = 'communityupdates';
    // Load the Module
    //PeopleMedia.FastActionModule.Init();
    //alert("ABC");
  });
</script>
<script type="text/javascript">
  PeopleMedia.NewMembersInArea.FeatureName = 'newmembers';
</script>